<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-community_id" class="control-label col-xs-12 col-sm-2">所属小区:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-community_id" data-rule="required" class="form-control" name="row[community_id]">
                {foreach name="community" item="vo"}
                    <option value="{$vo.code}">
                        {$vo.name}
                    </option>
                {/foreach}
            </select>
<!--            <input id="c-community_id" data-rule="required" class="form-control" name="row[community_id]" type="text">-->
        </div>
    </div>
    <div class="form-group">
        <label for="building_code" class="control-label col-xs-12 col-sm-2">楼号:</label>
        <div class="col-xs-12 col-sm-6">
            <select id="building_code" data-rule="required" class="form-control" name="row[building_code]">

            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-room_name" class="control-label col-xs-12 col-sm-2">会议室名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-room_name" data-rule="required" class="form-control" name="row[room_name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">会议室状态:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-status" class="form-control" data-rule="required" name="row[status]">
                <option value="1">
                    可用
                </option>
                <option value="2">
                    已有预约
                </option>
                <option value="3">
                    已停用
                </option>
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
    </div>
</div>
</form>